package Y2024.M12.D24;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25228
 * Date: 2024-12-24
 * Time: 10:05
 */
public class MAIN {
    public static void main(String[] args) throws FileNotFoundException {
        Number x = new Integer(3);
        int y=0;
        System.out.println(x.intValue());
        System.out.println(y=1);
    }
}
abstract interface p{
    abstract void  pr();
    void s();
}
interface A {
}
class C {
}
class B extends D implements A {
}
class Test {
    public static void main(String[] args) {
        B b = new B();
        if (b instanceof A)
            System.out.println("b is an instance of A");
        if (b instanceof C)
            System.out.println("b is an instance of C");
    }
}
class D extends C {
}